//
//  NSDate+Addition.h
//  Runone
//
//  Created by runone02 on 16/9/28.
//  Copyright © 2016年 runone. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Addition)

/**
 *  判断是否为昨天
 */
- (BOOL)isYesterday;

/**
 *  判断是否为今天
 */
- (BOOL)isToday;

/**
 *  判断是否为今年
 */
- (BOOL)isThisYear;

- (NSString *)stringFromDate:(NSDate *)date dateFormat:(NSString *)dateFromat;
/**
 *  获取一个时间与当前时间的时间差
 */
+ (NSDateComponents *)componentsFrom:(NSString *)dateString;

+ (NSUInteger )timeIntevalSinceRightNow:(NSString *)dateString;

+(int)compareOneDay:(NSString *)oneDay withAnotherDay:(NSString *)anotherDay;
@end
